<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>

<script>
function f2(x,y , ...rest ){
    console.log(x);
    console.log(y);
    console.log(rest );
}
//  ...rest  只能是最后一个形参
// function f2( ...rest,x,y ){
//     console.log(x);
//     console.log(y);
//     console.log(rest );
// }
f2(1,2,4,5,6,7,8,9,10,11,12,13,14)


function f1(){
    console.log(arguments);
    console.log("f1");
}

f1(1,"asdfas",new Date())

</script>